//
//  ModifyIDCardRequest.m
//  EasyToo
//
//  Created by YuanDee on 13-8-25.
//
//  更新身份证

#import "ModifyIDCardRequest.h"

@implementation ModifyIDCardRequest
-(id)initWithCardId:(NSString*)cardId
          NewCardId:(NSString*)newCardId
           Delegate:(id<ServerCommunicationDelegate>)delegate;
{
    self = [super init];
    if(self)
    {
        self.cardId = cardId;
        self.newCardId = newCardId;
        self.delegate = delegate;
        
        [self.bodyJsonDict setObject:self.cardId forKey:@"cardId"];
        [self.bodyJsonDict setObject:self.newCardId forKey:@"newCardId"];
        [self.headerJsonDict setObject:@"016015" forKey:@"TranCode"];
        
        [self buildJsonRequest];
    }
    return self;
}

-(void)dealloc
{
    self.newCardId = nil;
    self.cardId = nil;
    [super dealloc];
}

@end
